package com.cfuture08.home.action.backMenu;

import com.cfuture08.eweb4j.component.dwz.vo.Menu;
import com.cfuture08.eweb4j.component.json.JsonConverter;
import com.cfuture08.eweb4j.mvc.action.ActionSupport;
import com.cfuture08.eweb4j.orm.dao.DAO;

public class ShowMenuList extends ActionSupport {
	private String id = "-1";

	public String execute() {
		//将查询到的对象转换成json格式，并且out输出
		System.out.println(JsonConverter.convert(DAO.searchNot(Menu.class,
				new String[] { "id" }, new String[] { id })));
		return Json(DAO.searchNot(Menu.class,
				new String[] { "id" }, new String[] { id }));
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}
